# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-yabause
pkgver=0_git20200218
pkgrel=0
_commit="9be109f9032afa793d2a79b837c4cc232cea5929"
pkgdesc="Yabause/YabaSanshiro/Kronos ports to libretro"
url="https://github.com/libretro/yabause"
arch="x86 x86_64" # uses SSE compiler flags
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/yabause/archive/$_commit.tar.gz"
builddir="$srcdir/yabause-$_commit"
options="!check" # No tests

build() {
	make -C yabause/src/libretro
}

package() {
	install -Dm644 yabause/src/libretro/yabause_libretro.so \
		"$pkgdir"/usr/lib/libretro/yabause_libretro.so
}

sha512sums="829d48530a17f3d6e43fd08c0f22f89eda35806613745fa4076cff2d05bbb1c71e0dbf4d5efbf38c5b2aa12ce3489f581588ace8da8f399d7d7bd880f27ad0e4  libretro-yabause-9be109f9032afa793d2a79b837c4cc232cea5929.tar.gz"
